import {createApp} from 'vue'
import App from './App.vue'
import router from "./router";
// 导入大菠萝
import {createPinia} from "pinia"
// 导入pinia持久化插件
import PiniaPluginPersistedstate from "pinia-plugin-persistedstate"

import "./assets/css/index.css";
//导入element-plus
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';


// 导入animatecss样式
import "animate.css"

import PageView from "./components/PageView.vue";

const app = createApp(App);
const pinia = createPinia()
// 加载持久化插件
pinia.use(PiniaPluginPersistedstate);

app.component("page-view", PageView);

app.provide("baseURL",baseURL)

app.use(ElementPlus, {
    locale: zhCn,
});
app.use(pinia)
app.use(ElementPlus);
app.use(router);
app.mount('#app')
